# -*- coding: UTF-8 -*-

#或者：from bottle import *
from bottle import route,run,error

@route('/hello/:name')
def index(name="world"):
    return '<h3>hello {}</h3>'.format(name)

@error(404)
def error404(error):
    return 'sorry,nothing'

run(host='localhost',port=9999)